Skip to content

feat(vucm): add integration with NI-cDAQ #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

anataty
Copy link

@anataty anataty commented Feb 25, 2025

No description provided.

Copy link
Member

@rnovatorov rnovatorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @anataty, thanks for your PR!

To check if linters are satisfied please run make lint locally.

@anataty anataty force-pushed the ty/ni-daq/0 branch 3 times, most recently from 28834b8 to e6e43f4 Compare March 26, 2025 13:23
@anataty anataty force-pushed the ty/ni-daq/0 branch 2 times, most recently from 1122fc1 to dbc3f10 Compare July 11, 2025 11:08
asyncio.create_task(self.handle_conn(conn, addr))

async def handle_conn(self, conn, addr):
print(addr, "accept")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this debugging info available in the Cloud you could use built-in logging capabilities via self.log.

sock = self.socket
while True:
(conn, addr) = await asyncio.get_event_loop().sock_accept(sock)
asyncio.create_task(self.handle_conn(conn, addr))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should a task fail, the exception will be lost as no one is supervising it. Using a task group solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants